package ift605.tp3.b.resolvers;

import ift605.tp3.utils.equations.ConstantEq;
import ift605.tp3.utils.equations.IEquation;

public class ConstantResolverAgent extends AbstractResolverAgent
{
    private static final long serialVersionUID = 1L;
    
    @Override
    protected IEquation derive(IEquation eq)
    {
        if (eq instanceof ConstantEq)
        {
            return new ConstantEq(0);
        }
        return null;
    }
    
    @Override
    protected String getType()
    {
        return ConstantEq.class.getName();
    }
}
